package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Jackie on 2017/11/18.
 * 作业点规则模板请求结果实体
 */

public class JobPointRuleTemplateResponseBean implements Parcelable {

    /**
     * list : [{"tempDesc":"货主的货能否存放一起","tempId":"tscm_20171130"}]
     * page : 1
     * size : 20
     * total : 1
     */

    private int page;
    private int size;
    private int total;
    private List<JobPointTemplateDetailsBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<JobPointTemplateDetailsBean> getList() {
        return list;
    }

    public void setList(List<JobPointTemplateDetailsBean> list) {
        this.list = list;
    }

    public static class JobPointTemplateDetailsBean implements Parcelable {
        /**
         * tempDesc : 货主的货能否存放一起
         * tempId : tscm_20171130
         */

        private String tempDesc;
        private String tempId;

        public String getTempDesc() {
            return tempDesc;
        }

        public void setTempDesc(String tempDesc) {
            this.tempDesc = tempDesc;
        }

        public String getTempId() {
            return tempId;
        }

        public void setTempId(String tempId) {
            this.tempId = tempId;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.tempDesc);
            dest.writeString(this.tempId);
        }

        public JobPointTemplateDetailsBean() {
        }

        protected JobPointTemplateDetailsBean(Parcel in) {
            this.tempDesc = in.readString();
            this.tempId = in.readString();
        }

        public static final Parcelable.Creator<JobPointTemplateDetailsBean> CREATOR = new Parcelable.Creator<JobPointTemplateDetailsBean>() {
            @Override
            public JobPointTemplateDetailsBean createFromParcel(Parcel source) {
                return new JobPointTemplateDetailsBean(source);
            }

            @Override
            public JobPointTemplateDetailsBean[] newArray(int size) {
                return new JobPointTemplateDetailsBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeTypedList(this.list);
    }

    public JobPointRuleTemplateResponseBean() {
    }

    protected JobPointRuleTemplateResponseBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = in.createTypedArrayList(JobPointTemplateDetailsBean.CREATOR);
    }

    public static final Parcelable.Creator<JobPointRuleTemplateResponseBean> CREATOR = new Parcelable.Creator<JobPointRuleTemplateResponseBean>() {
        @Override
        public JobPointRuleTemplateResponseBean createFromParcel(Parcel source) {
            return new JobPointRuleTemplateResponseBean(source);
        }

        @Override
        public JobPointRuleTemplateResponseBean[] newArray(int size) {
            return new JobPointRuleTemplateResponseBean[size];
        }
    };
}
